home *** CD-ROM | disk | FTP | other *** search
/ Game.EXE 2004 July / My Disc.iso / patch / UT2004 / ut2004-winpatch3236.exe / UT2004-Patch / System / XWeapons.u / LinkGun_BallTarget_ScriptText.TextBuffer < prev    next >
Unknown  |  2004-06-11  |  1.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 68 16 63 6c 61 73 73 20 |........|h.class |
|00000010| 42 61 6c 6c 54 61 72 67 | 65 74 20 65 78 74 65 6e |BallTarg|et exten|
|00000020| 64 73 20 57 65 61 70 6f | 6e 46 69 72 65 3b 0d 0a |ds Weapo|nFire;..|
|00000030| 0d 0a 76 61 72 28 29 20 | 66 6c 6f 61 74 20 41 69 |..var() |float Ai|
|00000040| 6d 43 6f 6e 65 3b 0d 0a | 76 61 72 28 29 20 66 6c |mCone;..|var() fl|
|00000050| 6f 61 74 20 4d 61 78 44 | 69 73 74 3b 0d 0a 0d 0a |oat MaxD|ist;....|
|00000060| 73 69 6d 75 6c 61 74 65 | 64 20 66 75 6e 63 74 69 |simulate|d functi|
|00000070| 6f 6e 20 62 6f 6f 6c 20 | 41 6c 6c 6f 77 46 69 72 |on bool |AllowFir|
|00000080| 65 28 29 0d 0a 7b 0d 0a | 20 20 20 20 72 65 74 75 |e()..{..| retu|
|00000090| 72 6e 20 74 72 75 65 3b | 0d 0a 7d 0d 0a 0d 0a 66 |rn true;|..}....f|
|000000a0| 75 6e 63 74 69 6f 6e 20 | 44 6f 46 69 72 65 45 66 |unction |DoFireEf|
|000000b0| 66 65 63 74 28 29 0d 0a | 7b 0d 0a 20 20 20 20 6c |fect()..|{.. l|
|000000c0| 6f 63 61 6c 20 55 6e 72 | 65 61 6c 50 61 77 6e 20 |ocal Unr|ealPawn |
|000000d0| 70 3b 0d 0a 20 20 20 20 | 6c 6f 63 61 6c 20 50 61 |p;.. |local Pa|
|000000e0| 77 6e 20 62 65 73 74 50 | 3b 0d 0a 20 20 20 20 6c |wn bestP|;.. l|
|000000f0| 6f 63 61 6c 20 66 6c 6f | 61 74 20 62 65 73 74 57 |ocal flo|at bestW|
|00000100| 74 3b 0d 0a 20 20 20 20 | 6c 6f 63 61 6c 20 76 65 |t;.. |local ve|
|00000110| 63 74 6f 72 20 74 6f 50 | 61 77 6e 3b 0d 0a 20 20 |ctor toP|awn;.. |
|00000120| 20 20 6c 6f 63 61 6c 20 | 76 65 63 74 6f 72 20 65 | local |vector e|
|00000130| 79 65 44 69 72 3b 0d 0a | 20 20 20 20 6c 6f 63 61 |yeDir;..| loca|
|00000140| 6c 20 66 6c 6f 61 74 20 | 63 6f 73 64 6f 74 3b 0d |l float |cosdot;.|
|00000150| 0a 0d 0a 20 20 20 20 6c | 6f 63 61 6c 20 66 6c 6f |... l|ocal flo|
|00000160| 61 74 20 63 75 72 77 74 | 3b 0d 0a 20 20 20 20 6c |at curwt|;.. l|
|00000170| 6f 63 61 6c 20 66 6c 6f | 61 74 20 63 75 72 64 69 |ocal flo|at curdi|
|00000180| 73 74 3b 0d 0a 20 20 20 | 20 6c 6f 63 61 6c 20 66 |st;.. | local f|
|00000190| 6c 6f 61 74 20 63 75 72 | 64 6f 74 3b 20 20 20 20 |loat cur|dot; |
|000001a0| 0d 0a 0d 0a 20 20 20 20 | 69 66 20 28 20 28 49 6e |.... |if ( (In|
|000001b0| 73 74 69 67 61 74 6f 72 | 2e 52 6f 6c 65 20 3c 20 |stigator|.Role < |
|000001c0| 52 4f 4c 45 5f 41 75 74 | 68 6f 72 69 74 79 29 20 |ROLE_Aut|hority) |
|000001d0| 7c 7c 20 28 49 6e 73 74 | 69 67 61 74 6f 72 2e 50 ||| (Inst|igator.P|
|000001e0| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|000001f0| 49 6e 66 6f 20 3d 3d 20 | 4e 6f 6e 65 29 20 7c 7c |Info == |None) |||
|00000200| 20 28 49 6e 73 74 69 67 | 61 74 6f 72 2e 50 6c 61 | (Instig|ator.Pla|
|00000210| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00000220| 66 6f 2e 54 65 61 6d 20 | 3d 3d 20 4e 6f 6e 65 29 |fo.Team |== None)|
|00000230| 20 29 0d 0a 20 20 20 20 | 20 20 20 20 72 65 74 75 | ).. | retu|
|00000240| 72 6e 3b 0d 0a 0d 0a 20 | 20 20 20 62 65 73 74 50 |rn;.... | bestP|
|00000250| 20 3d 20 4e 6f 6e 65 3b | 0d 0a 20 20 20 20 63 6f | = None;|.. co|
|00000260| 73 64 6f 74 20 3d 20 63 | 6f 73 28 41 69 6d 43 6f |sdot = c|os(AimCo|
|00000270| 6e 65 2a 50 49 2f 31 38 | 30 29 3b 0d 0a 20 20 20 |ne*PI/18|0);.. |
|00000280| 20 65 79 65 44 69 72 20 | 3d 20 56 65 63 74 6f 72 | eyeDir |= Vector|
|00000290| 28 49 6e 73 74 69 67 61 | 74 6f 72 2e 43 6f 6e 74 |(Instiga|tor.Cont|
|000002a0| 72 6f 6c 6c 65 72 2e 52 | 6f 74 61 74 69 6f 6e 29 |roller.R|otation)|
|000002b0| 3b 0d 0a 20 20 20 20 62 | 65 73 74 57 74 20 3d 20 |;.. b|estWt = |
|000002c0| 30 2e 30 3b 0d 0a 0d 0a | 20 20 20 20 66 6f 72 65 |0.0;....| fore|
|000002d0| 61 63 68 20 49 6e 73 74 | 69 67 61 74 6f 72 2e 56 |ach Inst|igator.V|
|000002e0| 69 73 69 62 6c 65 41 63 | 74 6f 72 73 28 63 6c 61 |isibleAc|tors(cla|
|000002f0| 73 73 27 55 6e 72 65 61 | 6c 50 61 77 6e 27 2c 20 |ss'Unrea|lPawn', |
|00000300| 70 2c 20 4d 61 78 44 69 | 73 74 20 29 0d 0a 20 20 |p, MaxDi|st ).. |
|00000310| 20 20 7b 0d 0a 20 20 20 | 20 20 20 20 20 69 66 20 | {.. | if |
|00000320| 28 20 28 70 20 3d 3d 20 | 49 6e 73 74 69 67 61 74 |( (p == |Instigat|
|00000330| 6f 72 29 20 7c 7c 20 28 | 70 2e 50 6c 61 79 65 72 |or) || (|p.Player|
|00000340| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 20 |Replicat|ionInfo |
|00000350| 3d 3d 20 4e 6f 6e 65 29 | 20 7c 7c 20 28 50 2e 50 |== None)| || (P.P|
|00000360| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00000370| 49 6e 66 6f 2e 54 65 61 | 6d 20 21 3d 20 49 6e 73 |Info.Tea|m != Ins|
|00000380| 74 69 67 61 74 6f 72 2e | 50 6c 61 79 65 72 52 65 |tigator.|PlayerRe|
|00000390| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 54 65 |plicatio|nInfo.Te|
|000003a0| 61 6d 29 20 29 0d 0a 20 | 20 20 20 20 20 20 20 20 |am) ).. | |
|000003b0| 20 20 20 63 6f 6e 74 69 | 6e 75 65 3b 0d 0a 20 20 | conti|nue;.. |
|000003c0| 20 20 20 20 20 20 0d 0a | 20 20 20 20 20 20 20 20 | ..| |
|000003d0| 74 6f 50 61 77 6e 20 3d | 20 70 2e 4c 6f 63 61 74 |toPawn =| p.Locat|
|000003e0| 69 6f 6e 20 2d 20 49 6e | 73 74 69 67 61 74 6f 72 |ion - In|stigator|
|000003f0| 2e 4c 6f 63 61 74 69 6f | 6e 3b 0d 0a 20 20 20 20 |.Locatio|n;.. |
|00000400| 20 20 20 20 63 75 72 64 | 6f 74 20 3d 20 4e 6f 72 | curd|ot = Nor|
|00000410| 6d 61 6c 28 74 6f 50 61 | 77 6e 29 20 64 6f 74 20 |mal(toPa|wn) dot |
|00000420| 65 79 65 44 69 72 3b 0d | 0a 20 20 20 20 20 20 20 |eyeDir;.|. |
|00000430| 20 63 75 72 64 69 73 74 | 20 3d 20 56 53 69 7a 65 | curdist| = VSize|
|00000440| 28 74 6f 50 61 77 6e 29 | 3b 0d 0a 0d 0a 20 20 20 |(toPawn)|;.... |
|00000450| 20 20 20 20 20 69 66 28 | 20 63 75 72 64 6f 74 20 | if(| curdot |
|00000460| 3c 20 63 6f 73 64 6f 74 | 20 29 0d 0a 20 20 20 20 |< cosdot| ).. |
|00000470| 20 20 20 20 20 20 20 20 | 63 6f 6e 74 69 6e 75 65 | |continue|
|00000480| 3b 0d 0a 20 20 20 20 20 | 20 20 20 69 66 28 20 63 |;.. | if( c|
|00000490| 75 72 64 69 73 74 20 3e | 20 4d 61 78 44 69 73 74 |urdist >| MaxDist|
|000004a0| 20 29 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | ).. | |
|000004b0| 63 6f 6e 74 69 6e 75 65 | 3b 20 20 20 20 20 20 20 |continue|; |
|000004c0| 0d 0a 0d 0a 20 20 20 20 | 20 20 20 20 63 75 72 77 |.... | curw|
|000004d0| 74 20 3d 20 31 2e 30 20 | 2d 20 28 63 75 72 44 69 |t = 1.0 |- (curDi|
|000004e0| 73 74 20 2f 20 4d 61 78 | 44 69 73 74 29 3b 0d 0a |st / Max|Dist);..|
|000004f0| 20 20 20 20 20 20 20 20 | 63 75 72 77 74 20 2a 3d | |curwt *=|
|00000500| 20 63 75 72 64 6f 74 3b | 0d 0a 20 20 20 20 20 20 | curdot;|.. |
|00000510| 20 20 69 66 28 20 63 75 | 72 77 74 20 3e 20 62 65 | if( cu|rwt > be|
|00000520| 73 74 57 74 20 29 0d 0a | 20 20 20 20 20 20 20 20 |stWt )..| |
|00000530| 7b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 62 |{.. | b|
|00000540| 65 73 74 57 74 20 3d 20 | 63 75 72 77 74 3b 0d 0a |estWt = |curwt;..|
|00000550| 20 20 20 20 20 20 20 20 | 20 20 20 20 62 65 73 74 | | best|
|00000560| 50 20 3d 20 70 3b 0d 0a | 20 20 20 20 20 20 20 20 |P = p;..| |
|00000570| 7d 0d 0a 20 20 20 20 7d | 0d 0a 0d 0a 20 20 20 20 |}.. }|.... |
|00000580| 42 61 6c 6c 4c 61 75 6e | 63 68 65 72 28 57 65 61 |BallLaun|cher(Wea|
|00000590| 70 6f 6e 29 2e 53 65 74 | 50 61 73 73 54 61 72 67 |pon).Set|PassTarg|
|000005a0| 65 74 28 62 65 73 74 50 | 29 3b 0d 0a 7d 0d 0a 0d |et(bestP|);..}...|
|000005b0| 0a 00 | |.. | |
+--------+-------------------------+-------------------------+--------+--------+